package com.ropeok.Exception;



/**
 * 自定义业务异常
 */

public class ServiceException extends RuntimeException {
    //因为继承了RuntimeException,它有msg所以就不用再定义msg属性了,使用父类的msg
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public ServiceException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }

}
